package com.zbw.common.mapper.book;

import com.zbw.common.entity.Book;
import com.zbw.common.mapper.BookMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Administrator
 */

public interface FrontBooksMapper extends BookMapper {


//    List<BookCommentVO> listCommentByPage(@Param("userId") Long userId, @Param("bookId") Long bookId);
    //加载随机推荐
    List<Book> listRecBooks(@Param("catId") Integer userId);
    //增加访问量
    void addVisitCount(@Param("bookId") Long bookId, @Param("visitCount") Integer visitCount);

    void addCommentCount(Long bookId);
}
